package com.zijin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zijin.entity.Skype1631Account;
import com.zijin.mapper.Skype1631AccountMapper;
import com.zijin.service.Skype1631AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * skype1631人账户信息Service实现
 * */
@Service
public class Skype1631AccountServiceImpl extends ServiceImpl<Skype1631AccountMapper, Skype1631Account> implements Skype1631AccountService {

    @Autowired
    private Skype1631AccountMapper skype1631AccountMapper;
    /**
     * 根据卡号查找账户信息
     * */
    @Override
    public List<Skype1631Account> findAccountByBankNo(String tradeBankNo) {
        LambdaQueryWrapper<Skype1631Account> queryWrapper = Wrappers.<Skype1631Account>lambdaQuery();
        queryWrapper.eq(Skype1631Account::getTradeBankNo, tradeBankNo);
        List<Skype1631Account> skype1631Accounts = skype1631AccountMapper.selectList(queryWrapper);
        return skype1631Accounts;
    }
}
